list1 = [1, 2, 3, 1]
print(len(list1))
print('===================')
print(max(list1))
print(min(list1))
print('===================')
tuple1 = (10, 20, 30)
list2 = list(tuple1)
print(list2)
print(type(list2))
print('===================')
count = list1.count(1)
print(count)
print('===================')
list1.extend([4, 5, 6])
print(list1)
print('===================')
list1.remove(6)
print(list1)
print('===================')
list3 = [30, 10, 20]
list3.reverse()
print(list3)
print('===================')
list4 = [20, 10, 30]
list4.sort()  # 正序排序
print(list4)
list4.sort(reverse=True)  # 倒序排序
print(list4)
